const app = getApp()
Page({
  data: {
    cateItems:[
      {
        cate_id:1,
        cate_name:'男装',
      },
      {
        cate_id:2,
        cate_name:'女装'
      },
      {
        cate_id:3,
        cate_name:'床上用品'
      },
      {
        cate_id: 4,
        cate_name: '家具'
      },
      {
        cate_id: 5,
        cate_name: '零食'
      },
      {
        cate_id: 6,
        cate_name: '水果'
      },
      {
        cate_id: 7,
        cate_name: '手机'
      },
      {
        cate_id: 8,
        cate_name: '电脑'
      },
      {
        cate_id: 9,
        cate_name: '器材'
      },
      {
        cate_id: 10,
        cate_name: '亲子'
      },
      {
        cate_id: 11,
        cate_name: '合家欢'
      },
      {
        cate_id: 12,
        cate_name: '水'
      },
      {
        cate_id: 13,
        cate_name: '电子'
      }
    ],
    curNav:1,
    curIndex:0
  },
 
  switchRightTab:function(e){
    let id = e.target.dataset.id,index=e.target.dataset.index;
    this.setData({
      curNav:id,
      curIndex:index
    })
  },

})
